defensive measure

nouns

(military) military action or resources protecting a country against potential enemies
"they died in the defense of Stalingrad"; "they were developed for the defense program"